﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="GridUsuarios.aspx.cs" Inherits="YERIL_PI_INT.PaginasWebs.Modulos.Login.GridUsuarios" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml"> 
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title></title>
    <link href="../../../Content/bootstrap/bootstrap.min.css" rel="stylesheet" type="text/css" />
    <link rel="stylesheet" type="text/css" href="http://fonts.googleapis.com/css?family=Ubuntu:300,400,500,700"/>
    <link href="../../../Recursos/HojasEstilo/HELogin.css" rel="stylesheet" />  
 <script type="text/javascript">
     function Alerta_Eliminar() {
         var respuesta = confirm("¿Desea eliminar <%=seleccion%>?");
            if (respuesta == true) {
                return true;
            }
            else {
                return false;
            }

        }

    </script>
</head>
<body class="cuerpo">
    <form id="form1" runat="server">
    <div>
    <h3 class="text-center">Lista de Usuarios</h3>
        
        <br />
        <div class="botones">
             <p>
             <asp:ImageButton ID="btnShowAgregar" runat="server" CssClass="btn btn-default" ImageUrl="~/Recursos/Imagenes/glyphicons_006_user_add.png" OnClick="btnShowAgregar_Click" />
             <asp:ImageButton ID="btnShowEditar" runat="server" CssClass="btn btn-default" ImageUrl="~/Recursos/Imagenes/glyphicons_081_refresh.png" OnClick="btnShowEditar_Click"/>
             <asp:ImageButton ID="btnShowEliminar" runat="server" CssClass="btn btn-default" ImageUrl="~/Recursos/Imagenes/glyphicons_007_user_remove.png" OnClick="btnShowEliminar_Click" OnClientClick="return Alerta_Eliminar()"/>
             
            
             
            </p>
        </div>
        <div class="alert alert-info alert-dismissable">
            <button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
             <strong> <%=mensaje+"&nbsp"%></strong>
        </div>
        
        <div class="table-responsive">
        
        <asp:GridView ID="gvUsuario" runat="server" CssClass="table table-bordered table-hover" OnSelectedIndexChanged="gvUsuario_SelectedIndexChanged" >
            <Columns>
                <asp:CommandField ButtonType="Image" ShowSelectButton="True" SelectImageUrl="~/Recursos/Imagenes/glyphicons_217_circle_arrow_right.png" />
            </Columns>
            </asp:GridView>
      
        </div>
    </div>
    </form>
</body>
</html>
